package com.whcoding.test.constant;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-08-01 15:10
 **/
public enum ResultStatusEnum {

	DUPLICATE_KEY_CODE(1001, "数据重复"),
	PARAM_FAIL_CODE(1002, "方法参数异常"),
	VALIDATION_CODE(1003, "Validation异常"),
	PATH_NOT_FOND(404, "路径未找到"),
	SYSTEM_ERROR(500, "系统错误");

	private Integer code;

	private String msg;


	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	ResultStatusEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
